package generator.website;

import java.util.Iterator;
import org.eclipse.emf.common.util.EList;
import CarProject.*;;

public class configCreation
{
  protected static String nl;
  public static synchronized configCreation create(String lineSeparator)
  {
    nl = lineSeparator;
    configCreation result = new configCreation();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + NL + "<!DOCTYPE struts-config PUBLIC" + NL + "\"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN\"" + NL + "\"http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd\">" + NL + "<struts-config>";
  protected final String TEXT_2 = NL;
  protected final String TEXT_3 = NL;
  protected final String TEXT_4 = NL + "</struts-config>";
  protected final String TEXT_5 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    String[] tableau=(String[]) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    stringBuffer.append(tableau[0]);
    stringBuffer.append(TEXT_3);
    stringBuffer.append(tableau[1]);
    stringBuffer.append(TEXT_4);
    stringBuffer.append(TEXT_5);
    return stringBuffer.toString();
  }
}
